package org.ds.blog.service;

import org.apache.ibatis.annotations.Param;
import org.ds.blog.model.Article;

import java.util.List;

public interface ArticleService {
    Article getArticleById(Integer articleId);

    List<Article> getArticleByState(@Param("state") Integer state, @Param("userId") Integer userId,@Param("title") String title);

    Integer addArticle(Article article);

    Integer deleteArticlesByState(Integer []articleIds,Integer state);

    Integer addTagsToArticle(String[] tagId,Integer articleId);

    Integer restoreArticleById(Integer articleId);
}
